

def get_red_color(i):
    from matplotlib.colors import rgb2hex
    color_string = "255, 245, 240; 254, 224, 210; 252, 187, 161; 252, 146, 114; 251, 106, 74; 239, 59, 44; 203, 24, 29; 165, 15, 21; 103, 0, 13;"
    colors = color_string.split(";")[0:-1]
    rgb_color = [float(color)/255 for color in colors[i].split(",")]
    return rgb2hex(rgb_color)

def main():
    for i in range(4):
        print get_red_color(i)

if __name__=='__main__':
    main()
